import { useState } from "react";
import { RouterProvider } from "react-router-dom";
import { ConfigProvider } from "antd";
import router from "./router/router";
import "./App.less";

function App() {
  return (
    <ConfigProvider
      theme={{
        token: {
          // Seed Token，影响范围大
          colorPrimary: "#00b96b",
          borderRadius: 2,

          // 派生变量，影响范围小
          colorBgContainer: "#f6ffed",
        },
      }}
    >
      {/* 简写的意义：vite-react-app */}
      <div className="v-r-app">
        <RouterProvider router={router} />
      </div>
    </ConfigProvider>
  );
}

export default App;
